package com.lovo.test;

import java.time.LocalDate;
import java.time.Month;
import java.time.format.DateTimeFormatter;

public class Test {
    public static void main(String[] args) {
//        long num = System.currentTimeMillis();
//        for (int i = 0; i < 1000000000l; i++){
//
//        }
//        long num1 = System.currentTimeMillis();
//        System.out.println("耗时：" + (num1 - num));

//        System.out.println(LocalDate.of(2022,1,1));
//        LocalDate l = LocalDate.now();
//        LocalDate l1 = LocalDate.now().plusMonths(1);
//        System.out.println(l + " " + l.getDayOfWeek() + " " + l1 + " " + l1.getDayOfWeek());

        LocalDate lo = LocalDate.now();
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy年M月d日");
        String format = lo.format(formatter);
        System.out.println(format);
    }
}
